package com.zlt.appparking.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class ParkingLotExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public ParkingLotExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andPlIdIsNull() {
            addCriterion("pl_id is null");
            return (Criteria) this;
        }

        public Criteria andPlIdIsNotNull() {
            addCriterion("pl_id is not null");
            return (Criteria) this;
        }

        public Criteria andPlIdEqualTo(Integer value) {
            addCriterion("pl_id =", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotEqualTo(Integer value) {
            addCriterion("pl_id <>", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThan(Integer value) {
            addCriterion("pl_id >", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("pl_id >=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThan(Integer value) {
            addCriterion("pl_id <", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdLessThanOrEqualTo(Integer value) {
            addCriterion("pl_id <=", value, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdIn(List<Integer> values) {
            addCriterion("pl_id in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotIn(List<Integer> values) {
            addCriterion("pl_id not in", values, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdBetween(Integer value1, Integer value2) {
            addCriterion("pl_id between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlIdNotBetween(Integer value1, Integer value2) {
            addCriterion("pl_id not between", value1, value2, "plId");
            return (Criteria) this;
        }

        public Criteria andPlNameIsNull() {
            addCriterion("pl_name is null");
            return (Criteria) this;
        }

        public Criteria andPlNameIsNotNull() {
            addCriterion("pl_name is not null");
            return (Criteria) this;
        }

        public Criteria andPlNameEqualTo(String value) {
            addCriterion("pl_name =", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameNotEqualTo(String value) {
            addCriterion("pl_name <>", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameGreaterThan(String value) {
            addCriterion("pl_name >", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameGreaterThanOrEqualTo(String value) {
            addCriterion("pl_name >=", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameLessThan(String value) {
            addCriterion("pl_name <", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameLessThanOrEqualTo(String value) {
            addCriterion("pl_name <=", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameLike(String value) {
            addCriterion("pl_name like", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameNotLike(String value) {
            addCriterion("pl_name not like", value, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameIn(List<String> values) {
            addCriterion("pl_name in", values, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameNotIn(List<String> values) {
            addCriterion("pl_name not in", values, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameBetween(String value1, String value2) {
            addCriterion("pl_name between", value1, value2, "plName");
            return (Criteria) this;
        }

        public Criteria andPlNameNotBetween(String value1, String value2) {
            addCriterion("pl_name not between", value1, value2, "plName");
            return (Criteria) this;
        }

        public Criteria andPlAddressIsNull() {
            addCriterion("pl_address is null");
            return (Criteria) this;
        }

        public Criteria andPlAddressIsNotNull() {
            addCriterion("pl_address is not null");
            return (Criteria) this;
        }

        public Criteria andPlAddressEqualTo(String value) {
            addCriterion("pl_address =", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressNotEqualTo(String value) {
            addCriterion("pl_address <>", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressGreaterThan(String value) {
            addCriterion("pl_address >", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressGreaterThanOrEqualTo(String value) {
            addCriterion("pl_address >=", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressLessThan(String value) {
            addCriterion("pl_address <", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressLessThanOrEqualTo(String value) {
            addCriterion("pl_address <=", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressLike(String value) {
            addCriterion("pl_address like", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressNotLike(String value) {
            addCriterion("pl_address not like", value, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressIn(List<String> values) {
            addCriterion("pl_address in", values, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressNotIn(List<String> values) {
            addCriterion("pl_address not in", values, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressBetween(String value1, String value2) {
            addCriterion("pl_address between", value1, value2, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlAddressNotBetween(String value1, String value2) {
            addCriterion("pl_address not between", value1, value2, "plAddress");
            return (Criteria) this;
        }

        public Criteria andPlPhotoIsNull() {
            addCriterion("pl_photo is null");
            return (Criteria) this;
        }

        public Criteria andPlPhotoIsNotNull() {
            addCriterion("pl_photo is not null");
            return (Criteria) this;
        }

        public Criteria andPlPhotoEqualTo(String value) {
            addCriterion("pl_photo =", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoNotEqualTo(String value) {
            addCriterion("pl_photo <>", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoGreaterThan(String value) {
            addCriterion("pl_photo >", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoGreaterThanOrEqualTo(String value) {
            addCriterion("pl_photo >=", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoLessThan(String value) {
            addCriterion("pl_photo <", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoLessThanOrEqualTo(String value) {
            addCriterion("pl_photo <=", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoLike(String value) {
            addCriterion("pl_photo like", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoNotLike(String value) {
            addCriterion("pl_photo not like", value, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoIn(List<String> values) {
            addCriterion("pl_photo in", values, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoNotIn(List<String> values) {
            addCriterion("pl_photo not in", values, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoBetween(String value1, String value2) {
            addCriterion("pl_photo between", value1, value2, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlPhotoNotBetween(String value1, String value2) {
            addCriterion("pl_photo not between", value1, value2, "plPhoto");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeIsNull() {
            addCriterion("pl_longitude is null");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeIsNotNull() {
            addCriterion("pl_longitude is not null");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeEqualTo(BigDecimal value) {
            addCriterion("pl_longitude =", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeNotEqualTo(BigDecimal value) {
            addCriterion("pl_longitude <>", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeGreaterThan(BigDecimal value) {
            addCriterion("pl_longitude >", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pl_longitude >=", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeLessThan(BigDecimal value) {
            addCriterion("pl_longitude <", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pl_longitude <=", value, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeIn(List<BigDecimal> values) {
            addCriterion("pl_longitude in", values, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeNotIn(List<BigDecimal> values) {
            addCriterion("pl_longitude not in", values, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pl_longitude between", value1, value2, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLongitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pl_longitude not between", value1, value2, "plLongitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeIsNull() {
            addCriterion("pl_latitude is null");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeIsNotNull() {
            addCriterion("pl_latitude is not null");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeEqualTo(BigDecimal value) {
            addCriterion("pl_latitude =", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeNotEqualTo(BigDecimal value) {
            addCriterion("pl_latitude <>", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeGreaterThan(BigDecimal value) {
            addCriterion("pl_latitude >", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pl_latitude >=", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeLessThan(BigDecimal value) {
            addCriterion("pl_latitude <", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pl_latitude <=", value, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeIn(List<BigDecimal> values) {
            addCriterion("pl_latitude in", values, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeNotIn(List<BigDecimal> values) {
            addCriterion("pl_latitude not in", values, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pl_latitude between", value1, value2, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlLatitudeNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pl_latitude not between", value1, value2, "plLatitude");
            return (Criteria) this;
        }

        public Criteria andPlBak1IsNull() {
            addCriterion("pl_bak1 is null");
            return (Criteria) this;
        }

        public Criteria andPlBak1IsNotNull() {
            addCriterion("pl_bak1 is not null");
            return (Criteria) this;
        }

        public Criteria andPlBak1EqualTo(String value) {
            addCriterion("pl_bak1 =", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1NotEqualTo(String value) {
            addCriterion("pl_bak1 <>", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1GreaterThan(String value) {
            addCriterion("pl_bak1 >", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1GreaterThanOrEqualTo(String value) {
            addCriterion("pl_bak1 >=", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1LessThan(String value) {
            addCriterion("pl_bak1 <", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1LessThanOrEqualTo(String value) {
            addCriterion("pl_bak1 <=", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1Like(String value) {
            addCriterion("pl_bak1 like", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1NotLike(String value) {
            addCriterion("pl_bak1 not like", value, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1In(List<String> values) {
            addCriterion("pl_bak1 in", values, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1NotIn(List<String> values) {
            addCriterion("pl_bak1 not in", values, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1Between(String value1, String value2) {
            addCriterion("pl_bak1 between", value1, value2, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak1NotBetween(String value1, String value2) {
            addCriterion("pl_bak1 not between", value1, value2, "plBak1");
            return (Criteria) this;
        }

        public Criteria andPlBak2IsNull() {
            addCriterion("pl_bak2 is null");
            return (Criteria) this;
        }

        public Criteria andPlBak2IsNotNull() {
            addCriterion("pl_bak2 is not null");
            return (Criteria) this;
        }

        public Criteria andPlBak2EqualTo(String value) {
            addCriterion("pl_bak2 =", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2NotEqualTo(String value) {
            addCriterion("pl_bak2 <>", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2GreaterThan(String value) {
            addCriterion("pl_bak2 >", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2GreaterThanOrEqualTo(String value) {
            addCriterion("pl_bak2 >=", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2LessThan(String value) {
            addCriterion("pl_bak2 <", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2LessThanOrEqualTo(String value) {
            addCriterion("pl_bak2 <=", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2Like(String value) {
            addCriterion("pl_bak2 like", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2NotLike(String value) {
            addCriterion("pl_bak2 not like", value, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2In(List<String> values) {
            addCriterion("pl_bak2 in", values, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2NotIn(List<String> values) {
            addCriterion("pl_bak2 not in", values, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2Between(String value1, String value2) {
            addCriterion("pl_bak2 between", value1, value2, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlBak2NotBetween(String value1, String value2) {
            addCriterion("pl_bak2 not between", value1, value2, "plBak2");
            return (Criteria) this;
        }

        public Criteria andPlStateIsNull() {
            addCriterion("pl_state is null");
            return (Criteria) this;
        }

        public Criteria andPlStateIsNotNull() {
            addCriterion("pl_state is not null");
            return (Criteria) this;
        }

        public Criteria andPlStateEqualTo(Byte value) {
            addCriterion("pl_state =", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateNotEqualTo(Byte value) {
            addCriterion("pl_state <>", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateGreaterThan(Byte value) {
            addCriterion("pl_state >", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateGreaterThanOrEqualTo(Byte value) {
            addCriterion("pl_state >=", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateLessThan(Byte value) {
            addCriterion("pl_state <", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateLessThanOrEqualTo(Byte value) {
            addCriterion("pl_state <=", value, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateIn(List<Byte> values) {
            addCriterion("pl_state in", values, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateNotIn(List<Byte> values) {
            addCriterion("pl_state not in", values, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateBetween(Byte value1, Byte value2) {
            addCriterion("pl_state between", value1, value2, "plState");
            return (Criteria) this;
        }

        public Criteria andPlStateNotBetween(Byte value1, Byte value2) {
            addCriterion("pl_state not between", value1, value2, "plState");
            return (Criteria) this;
        }

        public Criteria andBuIdIsNull() {
            addCriterion("bu_id is null");
            return (Criteria) this;
        }

        public Criteria andBuIdIsNotNull() {
            addCriterion("bu_id is not null");
            return (Criteria) this;
        }

        public Criteria andBuIdEqualTo(Long value) {
            addCriterion("bu_id =", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdNotEqualTo(Long value) {
            addCriterion("bu_id <>", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdGreaterThan(Long value) {
            addCriterion("bu_id >", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdGreaterThanOrEqualTo(Long value) {
            addCriterion("bu_id >=", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdLessThan(Long value) {
            addCriterion("bu_id <", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdLessThanOrEqualTo(Long value) {
            addCriterion("bu_id <=", value, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdIn(List<Long> values) {
            addCriterion("bu_id in", values, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdNotIn(List<Long> values) {
            addCriterion("bu_id not in", values, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdBetween(Long value1, Long value2) {
            addCriterion("bu_id between", value1, value2, "buId");
            return (Criteria) this;
        }

        public Criteria andBuIdNotBetween(Long value1, Long value2) {
            addCriterion("bu_id not between", value1, value2, "buId");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}